import request from '@/utils/request'
import { SystemSettingList } from '@/model/system/setting/model'

export function loadAllDefine (type: string) {
  return request<SystemSettingList>({
    url: `/starSetting/getAllDefine?type=${type}`,
    method: 'post'
  })
}

export function saveAllDefine (data: [], type: string) {
  return request({
    url: `/starSetting/saveAll?type=${type}`,
    data: data,
    method: 'post'
  })
}
